/*
 * @Author: adolphus adolphus520@163.com
 * @Date: 2022-11-16 21:54:49
 * @LastEditors: 姚杰鸿
 * @LastEditTime: 2024-11-07 15:13:26
 * @Description: file content
 */
import NProgress from "nprogress";
import "nprogress/nprogress.css";

NProgress.configure({
  easing: "ease", // 动画方式
  speed: 1000, // 递增进度条的速度
  showSpinner: false, // 是否显示加载ico
  trickleSpeed: 200, // 自动递增间隔
  minimum: 0.5, // 更改启动时使用的最小百分比
  parent: "body", //指定进度条的父容器
});

export const start = () => {
  NProgress.start();
};

export const close = () => {
  NProgress.done();
};
